package Spark招聘数据处理;

/**
 * @author 35192
 * @date 2021-05-27 16:38
 */
public class test {
    public static void main(String[] args) {
        String str = "(面议)5-8K";
        System.out.println(str.indexOf(')'));
        System.out.println(str.length() - 1);
        String salary = str.substring(str.indexOf(')') + 1, str.length());
        System.out.println(salary);

        String[] salaries = salary.split("-");
        for (String s:salaries){
            System.out.println(s);
        }

        String min_salary = salaries[0];
        System.out.println( salaries[1].length()-1);
        String max_salary = salaries[1].substring(0, salaries[1].length()-1);
        System.out.println(min_salary+"   "+max_salary);

    }
}
